package com.itheima.spring.boot.autoconfigure;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(SMSConfigProperties.class)
public class SMSAutoConfiguration {
    @Bean
    public SMSClient smsClient(SMSConfigProperties smsConfigProperties){


        return new SMSClient(smsConfigProperties);
    }
}
